<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page pageEncoding="UTF-8" %>
<%@ include file="../common/common.jsp"%>

<jsp:useBean id="formBean" class="jp.co.technotree.apl.cmd.download.DownloadBean" scope="request" />
<%
ApplicationManager	context		= ApplicationManager.getInstance();
String				SystemName	= context.getAppConfig("userconfig.system");
String				filePath	= formBean.getFilePath();
String				fileGrp		= formBean.getFileGrp();
String				fileMsg		= formBean.getFileMsg();
String				fileTime	= formBean.getFileTime();
boolean				Go			= true;
%>
<html lang="ja-JP">
	<head>
		<title>ダウンロード</title>

		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta http-equiv="Content-Script-Type" content="text/javascript">
		<meta http-equiv="Content-Style-Type" content="text/css">

		<link rel="SHORTCUT ICON" href="../../common/img/default/sys_icon.ico">

		<link rel='stylesheet' type='text/css' href='../../common/css/base.css' >
		<link rel='stylesheet' type='text/css' href='../../common/css/common/download.css'>




		<style type="text/css">
		</style>

		<script TYPE="text/javascript">
			/*************************************
				画面表示時
			*************************************/
			function init(){
				
				var path="<%=filePath%>";
				var fileName="<%=fileGrp%>";
				
				
				<%	if (filePath != null && Go) { %>
				location.href = "../downloadfile/downloadfile?path=" + encodeURIComponent(path)+ "&fileName="+encodeURIComponent(fileName)+".xls";
				<%	} %>
			}

			function winClose(){
				window.close();
			}

			function center(){
			    var x,y;
			    if (self.innerHeight) {
			        x = (screen.availWidth - self.innerWidth) / 2;
			        y = (screen.availHeight - self.innerHeight) / 2;
			    }else if (document.documentElement && document.documentElement.clientHeight) {
			        x = (screen.availWidth - document.documentElement.clientWidth) / 2;
			        y = (screen.availHeight - document.documentElement.clientHeight) / 2;
			    }else if (document.body) {
			        x = (screen.availWidth - document.body.clientWidth) / 2;
			        y = (screen.availHeight - document.body.clientHeight) / 2;
			    }
			    window.moveTo(x,y);
			}


			function downLink(time){
				var frm = document.forms[1];
				frm.submit();
			}

		</script>
	</head>

	<body onLoad="javascript:init();">
		<form name="main" method="post" class="frmMain" enctype="multipart/form-data" action="./download.fw">
			<table class="menu-list-tbl" cellspacing="0" cellpadding="0" border="0" >
				<tr>
					<td>
						<table class="menu-list-tbl" cellspacing="0" cellpadding="0" border="0">
						<tr>
							<td class="tab-left"></td>
							<td class="tab-center">
								<div style="font-size: 15pt;margin-left: 7px;">&nbsp;&nbsp;&nbsp;&nbsp;<%=fileMsg%></div>
							</td>
							<td class="tab-right"></td>
						</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td>
						<table  class="menu-list-tbl" cellspacing="0" cellpadding="0" border="0">
							<tr>
								<td>
									<div style="font-size: 10pt;margin-left: 400px;">
										<input type="button" value="閉じる" onclick="winClose();">
									</div>
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td>
						<table>
							<tr>
								<td colspan="2">
									<br>
									<br>
									<div style="font-size: 13pt;margin-left: 18px;">ファイル名:&nbsp;<%=fileGrp%>&nbsp&nbsp
									</div>
									<br>
								</td>
							</tr>
							<tr>
								<td colspan="2">
									<div style="font-size: 13pt;margin-left: 18px;">作成時間:&nbsp;<%=fileTime%></div><br>
								</td>
							</tr>
							
							<!-- 
							<tr>
								<td><br>
								<br>
								<br>
								<br>
									<div style="font-size: 10pt;margin-left: 18px;">
										ダウンロードが出来ない場合は<br>
										<a href="../download2/<%= filePath %>">ここ</a>をクリックしてください。<br><br>
									<input type="button" onclick="location.href='../download2/<%= filePath %>'" value="Download">
									</div>
								</td>
								<td>
									<div style="margin-left: 10px;">
									
									</div>
									<div style="margin-left: 100px;"><img src="../../common/img/menu/down.png" /></div>
								</td>
							</tr>
							  -->
							  
						</table>
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>

<script type="text/javascript" language="JavaScript">
<!--
center();
//-->
</script>
